import Vue from 'vue'
import Router from 'vue-router'
import NotFoundComponent from '@/components/NotFound'
import MyCard from '@/components/MyCard' /* 我的卡券 */
import Bind from '@/components/Bind' /* 绑定手机号 */
import Nearby from '@/components/Nearby' /* 附近经销商 */
import PersonalCenter from '@/components/PersonalCenter' /* 个人中心 */
import Index from '@/components/Index' /* 防伪查询信息*/
import Activation from '@/components/Activation' /* 激活成功 */
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/MyCard',
      name: 'MyCard',
      component: MyCard
    },
    {
      path: '/Bind',
      name: 'Bind',
      component: Bind
    },
    {
      path: '/Index',
      name: 'Index',
      component: Index
    },
    {
      path: '/Activation',
      name: 'Activation',
      component: Activation
    },
    {
      path: '/PersonalCenter',
      name: 'PersonalCenter',
      component: PersonalCenter
    },
    {
      path: '/Nearby',
      name: 'Nearby',
      component: Nearby
    },
    {
      path: '*',
      component: NotFoundComponent
    }
  ]
})
